package model;

public class Usuario {


	private int id;
	private String name;
	private String type;
	private String login;
	private String pwd;
	private int setor_id;
	
	
	public Usuario(String login,String password){
		this.login = login;
		this.pwd   = password;	
	}
	
	public Usuario(String name,int id ){
		
		this.name=name;
		this.id=id;
	}
	
	public Usuario(int id,String name,String type,String login,String pwd,int setor){
		this.id       = id;
		this.name  	  = name;
		this.type  	  = type;
		this.login 	  = login;
		this.pwd   	  = pwd;
		this.setor_id = setor;
		
	}
	
	public Usuario(String nome){
		
		this.name=nome;
		
	}
	
	
	public int getId() {
		return id;
	}

	public void setId(int user_id) {
		this.id = user_id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getLogin() {
		return login;
	}

	public void setLogin(String login) {
		this.login = login;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public int getSector_id() {
		return setor_id;
	}

	public void setSector_id(int sector_id) {
		this.setor_id = sector_id;
	}
	
	public boolean validaUsuario(String Login,String Senha){
		if(this.login.equals(Login)&&this.pwd.equals(Senha)){
			return true;
		}else{
			return false;
		}
	}
}
